package demo.set;

import java.util.Comparator;

public class NameComparator implements Comparator<Test> {

	@Override
	public int compare(Test o1, Test o2) {
		System.out.println("in name comparator");
		return o1.name.compareTo(o2.name);

	}
}
